﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ERPStore.Settings
{
	public class EmailerSettings
	{
		private Dictionary<string, string> m_EmailViewList;

		public EmailerSettings()
		{
			m_EmailViewList = new Dictionary<string, string>();
			ShippingNotificationView = "~/emailer/shippingnotification.cshtml";
			ChangePasswordView = "~/emailer/changepassword.cshtml";
			OrderConfirmationView = "~/emailer/orderconfirmation.cshtml";
			AdminOrderConfirmationView = "~/emailer/adminorderconfirmation.cshtml";
			AccountConfirmationView = "~/emailer/accountconfirmation.cshtml";
			ContactRequestView = "~/emailer/contactrequest.cshtml";
			OrderModificationRequestView = "~/emailer/ordermodificationrequest.cshtml";
			OrderModificationView = "~/emailer/ordermodification.cshtml";
			PaymentFailedView = "~/emailer/paymentfailed.cshtml";
			QuoteRequestView = "~/emailer/quoterequest.cshtml";
			QuoteCanceledView = "~/emailer/quotecanceled.cshtml";
		}

		public string this[string name]
		{
			get
			{
				return m_EmailViewList[name];
			}
			set
			{
				m_EmailViewList[name] = value;
			}
		}

		public void AddView(string name, string view)
		{
			m_EmailViewList.Add(name, view);
		}

		public void Remove(string name)
		{
			m_EmailViewList.Remove(name);
		}

		public string ShippingNotificationView { get; set; }
		public string ChangePasswordView { get; set; }
		public string OrderConfirmationView { get; set; }
		public string AdminOrderConfirmationView { get; set; }
		public string AccountConfirmationView { get; set; }
		public string ContactRequestView { get; set; }
		public string OrderModificationRequestView { get; set; }
		public string OrderModificationView { get; set; }
		public string PaymentFailedView { get; set; }
		public string QuoteRequestView { get; set; }
		public string QuoteCanceledView { get; set; }
	}
}
